package com.glsc.ngateway.common.base.repo.sqlserver.glsec;

import com.glsc.ngateway.common.base.domain.sqlserver.glsec.TAmEhrDeptinfoEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auther: gaojc
 * @Date: 2021/9/22 18:40
 * @Description:
 */
@Repository
public interface TAmEhrDeptinfoRepo extends JpaRepository<TAmEhrDeptinfoEntity, Integer> {

    @Query(value = "select * from eVW_DeptInfo WITH(NOLOCK)", nativeQuery = true)
    List<TAmEhrDeptinfoEntity> getDeptInfoList();
}
